

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Custom Stereotypes [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Custom,Custom Stereotypes,Stereotype,Stereotype Custom,Stereotype Dialog">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Custom Stereotypes</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="umlprofiles_2.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="workingwithprofiles.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">UML supports a large number of </span><span class="f_BodyText" style="font-style: italic;">stereotypes</span><span class="f_BodyText">, which are an inbuilt mechanism for logically extending or altering the meaning, display and syntax of a model element. Different model elements have different stereotypes associated with them. For more information on the use of stereotypes in Enterprise Architect, see the </span><span class="f_BodyText" style="font-style: italic;"><a href="stereotypedlg.htm">UML Stereotypes</a></span><span class="f_BodyText"> topic.</span></p>
<p class="p_BodyText"><span class="f_BodyText">In Enterprise Architect you can create new stereotypes with their own custom appearance. The stereotypes can be altered to make use of metafiles (image files) and customized colors, or you can make use of the Enterprise Architect Shape Script to make new element shapes to determine the shape and dimensions of the element.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To add your own custom stereotypes, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">From the main menu, select </span><span class="f_MenuKeyField">Settings | UML</span><span class="f_NumberedList">. The </span><span class="f_UIControl">UML Types</span><span class="f_NumberedList"> dialog displays, defaulted to the </span><span class="f_UIControl">Stereotypes</span><span class="f_NumberedList"> tab.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="stereotypedlg.png" width="665" height="560" border="0" alt="StereotypeDlg"><br>
<span class="f_NumberedList">&nbsp;</span></li>
<li value=2><span class="f_NumberedList">Type or select a </span><span class="f_MenuKeyField">Stereotype</span><span class="f_NumberedList"> name.</span></li>
<li value=3><span class="f_NumberedList">Select a </span><span class="f_MenuKeyField">Base Class</span><span class="f_NumberedList"> from the drop-down list.</span></li>
<li value=4><span class="f_NumberedList">To associate a </span><span class="f_NumberedList">Metafile</span><span class="f_NumberedList"> with this stereotype, click on the </span><span class="f_MenuKeyField">Metafile </span><span class="f_NumberedList">radio</span><span class="f_MenuKeyField"> </span><span class="f_NumberedList">button and the </span><span class="f_MenuKeyField">Assign</span><span class="f_NumberedList"> button, and locate the required .emf or .wmf file.</span></li>
<li value=5><span class="f_NumberedList">Enter optional </span><span class="f_MenuKeyField">Notes</span><span class="f_NumberedList"> and select </span><span class="f_MenuKeyField">Default Colors</span><span class="f_NumberedList"> for this stereotype.</span></li>
<li value=6><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">Save</span><span class="f_NumberedList"> button to save the stereotype.</span></li>
</ol>
<p class="p_BodyText"><span class="f_BodyText">The table below describes the functionality of the </span><span class="f_UIControl">Stereotypes</span><span class="f_BodyText"> tab.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" bgcolor="#e3e6ed" style="width:138px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Option</span></p>
</td>
<td valign="top" width="505" bgcolor="#e3e6ed" style="width:505px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Use to</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Stereotype</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify the name of the stereotype.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Group name</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enable grouping of stereotype features by a plural name, for attributes and operations, and is shown on diagrams in the attribute and operations compartments.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Base Class</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enable the stereotyped element to inherit the base characteristics from a pre-existing element type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Notes</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Add any stereotype notes.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Override Appearance</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">None</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Switch to the default element appearance.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Metafile</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enable an image file to be used for the appearance of the stereotype.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Shape Script</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Specify custom shapes for the stereotype using the </span><span class="f_Tabletext" style="font-style: italic;">Enterprise Architect Shape Scripting</span><span class="f_Tabletext"> language. For more information see the </span><span class="f_Tabletext" style="font-style: italic;"><a href="shape_editor_2.htm">Shape Scripting</a></span><span class="f_Tabletext"> topic.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Assign</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Add the associated metafile or Shape Script from the stereotyped element.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Remove</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Remove the associated metafile or Shape Script from the stereotyped element.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_UIControl">Default Colors</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Fill</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Set the default background color of the element.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Border</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Control the border color.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Font</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Control the color of the stereotype font.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="138" style="width:138px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Reset</span></p>
</td>
<td valign="top" width="505" style="width:505px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Reset the appearance of the element to the default element appearance.</span></p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">You can transport these custom stereotype definitions between models, using the </span><span class="f_MenuKeyField"><a href="exportrefdata.htm">Export Reference Data</a></span><span class="f_TiporNoteText"> and </span><span class="f_MenuKeyField"><a href="importrefdata.htm">Import Reference Data</a></span><span class="f_TiporNoteText"> options on the </span><span class="f_MenuKeyField">Tools</span><span class="f_TiporNoteText"> menu.</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
